﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;

namespace Bzure.Apps.Security
{
    [Export(typeof(IApplicationStart)), ExportMetadata("ProviderName", "SecurityAppCommonStarter")]
    public class SecurityAppStarter : IApplicationStart
    {
        /// <summary>
        /// 契约实现的版本号
        /// </summary>
        public float ContractVersion { get { return 1.0F; } }
        public void PreStart(IApplicationStartContext StartContext)
        {
            //设定系统配置模板的数据提供者
            Bzure.Common.Configuration.AppConfiguration.ConfigTemplateSource.Name = "SecurityApp";
        }
        public void Start(IApplicationStartContext StartContext)
        {

            Actor.Public.AppendSystemRightType<AdministrationRights>();
        }
    }
}
